import { Component } from '@angular/core';
import {FormControl} from "@angular/forms";

@Component({
  selector: 'app-root',
  template: `
    <div>
      <h1>{{title}}</h1>
      <label for="name">Name: </label>
      <input id="name" type="text" [formControl]="name">
      <div class="links">
        <a routerLink="/">basic</a> | 
        <a routerLink="/about">about</a>
      </div>
      <router-outlet></router-outlet>
    </div>
  `,
})
export class AppComponent {
  title = 'Working component!';
  name = new FormControl('a');
}
